Problem Note 32136: Anova task might not generate plots in SASĀ® Enterprise Guide
The ANOVA task Linear Models, which uses PROC GLM and PROC GPLOT, might not generate plots in SAS Enterprise Guide. This will most likely occur when using the Plots options Dependent means for main effects and Adjusted means, but other options might also prevent the plot from displaying. The problem occurs because Enterprise Guide is generating incorrect program code at the following two places:
1) The second LSMEANS statement with the NOPRINT option needs to actually list the effects in order to output any data. For example,
LSMEANS sex / ; LSMEANS / NOPRINT OUT=WORK.TMP3TempTableLSMeans ;
|
should be
LSMEANS sex / ; LSMEANS sex / NOPRINT OUT=WORK.TMP3TempTableLSMeans ;
|
2) The data step code to generate the effect variable actually puts the value of the independent variable (VarName2) into 'effect'; there need to be quotes around the VarName2. For example, the IF statement in the generated code:
/* DATA step to organize the LSMEANS data for use in plots
Create 3 observations for each LSMEANS entry:
Estimate, Estimate + StdErr, Estimate - StdErr */
DATA WORK.TMP3TempTableLSMeans;
LENGTH effect $ 4;
SET WORK.TMP3TempTableLSMeans;
DROP lsmean;
effect = '';
IF sex ^= '' THEN
effect = TRIMN(LEFT(effect)) || '*' || sex;
|
should be:
IF sex ^= '' THEN
effect = TRIMN(LEFT(effect)) || '*' || "sex";
|
with quotes around the variable "SEX".
The code generated by Enterprise Guide can result in an empty input table being used by PROC GPLOT, which means that a plot will not be generated.
The only circumvention is to manually edit the code.
Operating System and Release Information
SAS System | SAS Enterprise Guide | Microsoft Windows Server 2003 Datacenter Edition | 4.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Enterprise Edition | 4.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Standard Edition | 4.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows XP Professional | 4.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2008-05-21 13:20:27 |
Date Created: | 2008-05-16 13:04:10 |